package com.raptor.trustworthy.server.dao.impl;

import com.raptor.trustworthy.server.dao.GoDao;
import com.raptor.trustworthy.server.mapper.GoDaoMapper;
import com.raptor.trustworthypojo.pojo.CookUploadLog;
import com.raptor.trustworthypojo.pojo.TCooker;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @Author renhuan
 * @Date 2021-04-22 15:46
 **/
@Repository
public class GoDaoImpl implements GoDao {

  @Autowired
  private GoDaoMapper goDaoMapper;

  @Override
  public List<TCooker> queryAllCook() {
    return goDaoMapper.queryAllCook();
  }

  @Override
  public List<TCooker> queryAllCookByCookerId(Long cookerId) {
    return goDaoMapper.queryAllCookByCookerId(cookerId);
  }

  @Override
  public int selectNpUploadLogByUploadNoCount(Map<String, Object> inParams) {
    return goDaoMapper.selectNpUploadLogByUploadNoCount(inParams);
  }

  @Override
  public int insertUploadLog(CookUploadLog uploadLog) {
    return goDaoMapper.insertUploadLog(uploadLog);
  }

  @Override
  public List<TCooker> queryAllCookByCooker(Map paramMap) {
    return goDaoMapper.queryAllCookByCooker(paramMap);
  }
}
